package com.xwj.sharding.service.impl;

import com.xwj.sharding.dao.UserMapper;
import com.xwj.sharding.domain.User;
import com.xwj.sharding.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author xwj
 * @date 2020/3/3
 */
@Service
public class UserServiceImpl implements UserService {
    @Autowired
    UserMapper userMapper;
    @Override
    public List<User> list() {
        return userMapper.list();
    }

    @Override
    public void add(User user) {
        userMapper.add(user);
    }
}
